import express from 'express'
import api from './api'

const router = express.Router()

// 账号列表
router.post('/login', function (req, res, next) {
    api.Login(req, res, next)
})
// 账号列表
router.post('/account/list', function (req, res, next) {
    api.AccountList(req, res, next)
})
// 账号新增
router.post('/account/add', function (req, res, next) {
    api.AccountAdd(req, res, next)
})
// 单个账号信息
router.get('/account/info', function (req, res, next) {
    api.AccountInfo(req, res, next)
})
// 账号更新
router.post('/account/update', function (req, res, next) {
    api.AccountUpdate(req, res, next)
})
// 账号删除
router.post('/account/delete', function (req, res, next) {
    api.AccountDelete(req, res, next)
})
// 批量账号删除
router.post('/account/delete/multiple', function (req, res, next) {
    api.AccountDeleteMultiple(req, res, next)
})
export default router

